<template>
	<div>
		<h1>{{msg}}</h1>
		<h2>学生姓名：{{name}}</h2>
		<h2>学生性别：{{sex}}</h2>
    <button @click="showName"></button>
	</div>
</template>

<script>
	import {mixin} from "../mixin";

  export default {
		name:'Student',
		data() {
			console.log(this)
			return {
				msg:'我是一个尚硅谷的学生',
				name:"孙峰",
        sex: "男"
			}
		},
    mixins: [mixin],

	}
</script>